package com.future.lock.home.entity.bean;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/12/21 0021.
 */

public class GateWay {
    public String gatewayId;
    public String mac;

    public GateWay() {
    }

    public GateWay(String gatewayId, String mac) {
        this.gatewayId = gatewayId;
        this.mac = mac;
    }

    public void parse(JSONObject object){
        gatewayId = object.optString("gateway_id");
        mac = object.optString("name");
    }
}
